package com.cbtx.module_sp.bean;

import java.io.Serializable;
import java.util.List;

/**
 * author : joker.peng
 * e-mail : joker@fiture.com
 * date   : 2021/6/10 5:48 PM
 * desc   :
 */
public class Report implements Serializable {


    /**
     * code : 0
     * msg : 操作成功
     * logMsg : null
     * data : {"sysDate":1623378496997,"pollConfig":
     * [{"pollConfigId":null,"pollName":"REPORT","pollIntervalTime":300000},
     * {"pollConfigId":null,"pollName":"NEW_SETTING","pollIntervalTime":7200000},
     * {"pollConfigId":null,"pollName":"NEW_PROGRAM","pollIntervalTime":3600000},
     * {"pollConfigId":null,"pollName":"NEW_UPGRADE","pollIntervalTime":7200000}],
     * "newChange":{"newSetting":null,"newSettingUpdateTime":null,"newUpgrade":null,
     * "newUpgradeUpdateTime":null,"newProgram":true,"newProgramUpdateTime":1620617351524,
     * "newBottomAd":null,"newBottomAdUpdateTime":null,"newFaceBackgroundUpload":null}}
     */

    private int code;
    private String msg;
    private Object logMsg;
    private DataBean data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getLogMsg() {
        return logMsg;
    }

    public void setLogMsg(Object logMsg) {
        this.logMsg = logMsg;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean implements Serializable {
        /**
         * sysDate : 1623378496997
         * pollConfig : [{"pollConfigId":null,"pollName":"REPORT","pollIntervalTime":300000},
         * {"pollConfigId":null,"pollName":"NEW_SETTING","pollIntervalTime":7200000},{"p
         * ollConfigId":null,"pollName":"NEW_PROGRAM","pollIntervalTime":3600000},
         * {"pollConfigId":null,"pollName":"NEW_UPGRADE","pollIntervalTime":7200000}]
         * newChange : {"newSetting":null,"newSettingUpdateTime":null,"newUpgrade":null,
         * "newUpgradeUpdateTime":null,"newProgram":true,"newProgramUpdateTime":1620617351524,
         * "newBottomAd":null,"newBottomAdUpdateTime":null,"newFaceBackgroundUpload":null}
         */

        private long sysDate;
        private NewChangeBean newChange;
        private List<PollConfigBean> pollConfig;

        public long getSysDate() {
            return sysDate;
        }

        public void setSysDate(long sysDate) {
            this.sysDate = sysDate;
        }

        public NewChangeBean getNewChange() {
            return newChange;
        }

        public void setNewChange(NewChangeBean newChange) {
            this.newChange = newChange;
        }

        public List<PollConfigBean> getmPollConfig() {
            return pollConfig;
        }

        public void setmPollConfig(List<PollConfigBean> mPollConfig) {
            this.pollConfig = mPollConfig;
        }

        public static class NewChangeBean implements Serializable {
            /**
             * newSetting : null
             * newSettingUpdateTime : null
             * newUpgrade : null
             * newUpgradeUpdateTime : null
             * newProgram : true
             * newProgramUpdateTime : 1620617351524
             * newBottomAd : null
             * newBottomAdUpdateTime : null
             * newFaceBackgroundUpload : null
             */

            private Object newSetting;
            private Object newSettingUpdateTime;
            private Object newUpgrade;
            private Object newUpgradeUpdateTime;
            private boolean newProgram;
            private long newProgramUpdateTime;
            private Object newBottomAd;
            private Object newBottomAdUpdateTime;
            private Object newFaceBackgroundUpload;

            public Object getNewSetting() {
                return newSetting;
            }

            public void setNewSetting(Object newSetting) {
                this.newSetting = newSetting;
            }

            public Object getNewSettingUpdateTime() {
                return newSettingUpdateTime;
            }

            public void setNewSettingUpdateTime(Object newSettingUpdateTime) {
                this.newSettingUpdateTime = newSettingUpdateTime;
            }

            public Object getNewUpgrade() {
                return newUpgrade;
            }

            public boolean isNewUpgrade() {
                try {
                    return Boolean.parseBoolean((String)newUpgrade);
                } catch (Exception e) {
                    return false;
                }
            }

            public void setNewUpgrade(Object newUpgrade) {
                this.newUpgrade = newUpgrade;
            }

            public Object getNewUpgradeUpdateTime() {
                return newUpgradeUpdateTime;
            }

            public void setNewUpgradeUpdateTime(Object newUpgradeUpdateTime) {
                this.newUpgradeUpdateTime = newUpgradeUpdateTime;
            }

            public boolean isNewProgram() {
                return newProgram;
            }

            public void setNewProgram(boolean newProgram) {
                this.newProgram = newProgram;
            }

            public long getNewProgramUpdateTime() {
                return newProgramUpdateTime;
            }

            public void setNewProgramUpdateTime(long newProgramUpdateTime) {
                this.newProgramUpdateTime = newProgramUpdateTime;
            }

            public Object getNewBottomAd() {
                return newBottomAd;
            }

            public void setNewBottomAd(Object newBottomAd) {
                this.newBottomAd = newBottomAd;
            }

            public Object getNewBottomAdUpdateTime() {
                return newBottomAdUpdateTime;
            }

            public void setNewBottomAdUpdateTime(Object newBottomAdUpdateTime) {
                this.newBottomAdUpdateTime = newBottomAdUpdateTime;
            }

            public Object getNewFaceBackgroundUpload() {
                return newFaceBackgroundUpload;
            }

            public void setNewFaceBackgroundUpload(Object newFaceBackgroundUpload) {
                this.newFaceBackgroundUpload = newFaceBackgroundUpload;
            }
        }

        public static class PollConfigBean implements Serializable {
            /**
             * pollConfigId : null
             * pollName : REPORT
             * pollIntervalTime : 300000
             */

            private Object pollConfigId;
            private String pollName;
            private int pollIntervalTime;

            public Object getPollConfigId() {
                return pollConfigId;
            }

            public void setPollConfigId(Object pollConfigId) {
                this.pollConfigId = pollConfigId;
            }

            public String getPollName() {
                return pollName;
            }

            public void setPollName(String pollName) {
                this.pollName = pollName;
            }

            public int getPollIntervalTime() {
                return pollIntervalTime;
            }

            public void setPollIntervalTime(int pollIntervalTime) {
                this.pollIntervalTime = pollIntervalTime;
            }
        }
    }
}